package com.student.client.mapper;

import com.student.client.entity.Vaccines;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface VaccinesMapper {
    //查看注射疫苗信息
    @Select("select vaccines_name, vaccines_date, location, factory, place, person, photo_url, age from vaccines_info")
    public List<Vaccines> findAllVaccines();
    //添加注射信息
    @Insert("INSERT INTO vaccines_info(name, date, location, factory, place, person, photo_url, age)" +
            "values(#{name},#{date},#{location},#{factory},#{place},#{person},#{photo_url},#{age})" )
    public int addVaccines(Vaccines vaccines);

}
